package com.example.dzchat;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;


import com.alibaba.fastjson.JSON;


/**
 * Created by Administrator on 2020/9/3.
 */

public class API {


    /**
     * 查询OBU状态
     */
    public static void chat(Context context, String query,String conversion_id ,
                                   Okhttp.Objectcallback handler) {
        MyData myData=new MyData();
        myData.setQuery(query);
        myData.setConversion_id(conversion_id);
        Okhttp.postjson( "https://gpt-test1.shukun.net/demo/chat", JSON.toJSONString(myData), handler);


    }






}
